package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;

import java.util.Date;
import java.util.Objects;

public class UserMail extends DataObject {

	private String mailUid;

	private int mailType;

	private String title;

	private String content;

	private String annexes;

	private Date sendTime;

	private long sendUserId;

	private String sendNickName;

	private long receiveUserId;

	private boolean isRead;

	private Date readTime;

	private boolean isGetReward;

	private boolean isDelete;
	private String serverList;

	private int activityId;

	//后台邮件id
	private long personalId;

	//二维吗
	private String qrCode;

	public String getMailUid() {
		return mailUid;
	}

	public void setMailUid(String mailUid) {
		if(!Objects.equals(this.mailUid, mailUid)) {
			this.mailUid = mailUid;
			setUpdateOption();
		}
	}

	public int getMailType() {
		return mailType;
	}

	public void setMailType(int mailType) {
		if(this.mailType != mailType) {
			this.mailType = mailType;
			setUpdateOption();
		}
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		if(!Objects.equals(this.title, title)) {
			this.title = title;
			setUpdateOption();
		}
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		if(!Objects.equals(this.content, content)) {
			this.content = content;
			setUpdateOption();
		}
	}

	public String getAnnexes() {
		return annexes;
	}

	public void setAnnexes(String annexes) {
		if(!Objects.equals(this.annexes, annexes)) {
			this.annexes = annexes;
			setUpdateOption();
		}
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		if(this.sendTime != sendTime) {
			this.sendTime = sendTime;
			setUpdateOption();
		}
	}

	public long getSendUserId() {
		return sendUserId;
	}

	public void setSendUserId(long sendUserId) {
		if(this.sendUserId != sendUserId) {
			this.sendUserId = sendUserId;
			setUpdateOption();
		}
	}

	public String getSendNickName() {
		return sendNickName;
	}

	public void setSendNickName(String sendNickName) {
		if(!Objects.equals(this.sendNickName, sendNickName)) {
			this.sendNickName = sendNickName;
			setUpdateOption();
		}
	}

	public long getReceiveUserId() {
		return receiveUserId;
	}

	public void setReceiveUserId(long receiveUserId) {
		if(this.receiveUserId != receiveUserId) {
			this.receiveUserId = receiveUserId;
			setUpdateOption();
		}
	}

	public boolean isRead() {
		return isRead;
	}

	public void setRead(boolean read) {
		if(this.isRead != read) {
			isRead = read;
			setUpdateOption();
		}
	}

	public Date getReadTime() {
		return readTime;
	}

	public void setReadTime(Date readTime) {
		if(this.readTime != readTime) {
			this.readTime = readTime;
			setUpdateOption();
		}
	}

	public boolean isGetReward() {
		return isGetReward;
	}

	public void setGetReward(boolean getReward) {
		if(this.isGetReward != getReward) {
			isGetReward = getReward;
			setUpdateOption();
		}
	}

	public boolean isDelete() {
		return isDelete;
	}

	public void setDelete(boolean delete) {
		if(this.isDelete != delete) {
			isDelete = delete;
			setUpdateOption();
		}
	}

	public String getServerList() {
		return serverList;
	}

	public void setServerList(String serverList) {
		this.serverList = serverList;
	}

	public int getActivityId() {
		return activityId;
	}

	public void setActivityId(int activityId) {
		if (this.activityId != activityId) {
			this.activityId = activityId;
			setUpdateOption();
		}
	}

	public long getPersonalId() {
		return personalId;
	}

	public void setPersonalId(long personalId) {
		this.personalId = personalId;
	}

	public String getQrCode() {
		return qrCode;
	}

	public void setQrCode(String qrCode) {
		if (!Objects.equals(this.qrCode, qrCode)) {
			this.qrCode = qrCode;
			setUpdateOption();
		}
	}
}
